
<div class="tipbox tipbox-message">
    <span class="fn-f14 fn-fb red">注意：</span>分享奖励是二级分享,每一级都是在原价的基础上计算,请注意<span class="red fn-fb">红包占比</span>。
</div>    
<form id="form" action="{:url('manage.unmarket/storeEdit')}">
<input type="hidden" name="union_id" value="{$union_id}"/>
<input type="hidden" name="id" value="{$info.id}"/>
<table class="formtable">
    <th>选择好店:</th>
    <td>
        <input id="store_id" class="readonly input w100" type="text" name="store_id" value="{$info.store_id}" />
        <button url="{:url('allwin/store/selectStore',['input' => 'uid'])}" type="button" class="selectid button"><i class="iconfont icon-my_icon"></i>选择店铺</button>
    </td>
    <tr><th>最后有效期:</th><td><input readonly="true" class="input readonly ui-time" datatype="date" type="text" name="endtime" value="{$info.endtime|date='Y-m-d H:i:s'}" /></td></tr>
    <tr><th>活动内容:</th><td><textarea name="content" class="textarea ui-mieditor">{$info.content|dehtml}</textarea></td></tr>
    <tr><th>活动须知:</th><td><textarea name="note" class="textarea ui-mieditor">{$info.note|dehtml}</textarea></td></tr>
    <tr><th>商家介绍:</th><td><textarea name="about" class="textarea ui-editor w400">{$info.about|dehtml}</textarea></td></tr>
    <tr><th>图文展示:</th><td><textarea name="pictext" class="textarea ui-editor w400">{$info.pictext|dehtml}</textarea></td></tr>
    <tr>
        <th>
            <input type="hidden" name="img" id="img_index"  value="{$info.img}" />
            <button url="{:url('system/passport.common/upload')}" type="button" class="button selectid"><i class="iconfont icon-pic"></i>选择图片</button>
        </th>
        <td id="imgbox">
            {foreach $info.imgs as $pic}
            <div class="box-view fn-left fn-cp{if $info.img == $pic} current{/if}">
                <input type="hidden" name="imgs[]" value="{$pic}" /><img src="{$pic}" onclick="selectImg(this)">
                <div class="opera">
                    <a class="imgbox-left" href="javascript:;"><i class="iconfont icon-arrowleft"></i></a>
                    <a class="imgbox-right" href="javascript:;"><i class="iconfont icon-arrowright"></i></a>
                    <a class="imgbox-link" href="javascript:;" onclick="linkImg(this)"><i class="iconfont icon-pic"></i></a>
                    <a class="imgbox-close" href="javascript:;" onclick="delImg(this)"><i class="iconfont icon-cuowu"></i></a>
                </div>
            </div>
            {/foreach}
        </td>
    </tr>
    <tr>
        <th></th>
        <td>
            <input type="submit" value="确定" class="button button-blue submit" />
            <input type="reset" value="重置" class="button button-blank"/>
        </td>
    </tr>
</table>
</div>
</form>
<script type="text/javascript">
Do('base','layer','form','editor','date',function () {
    $('#form').isForm({'upload':'{:url("system/passport.common/upload")}'});
    $(".selectid").win();
})
function setState(store){
    $('#store_id').val(store.id);
}
</script>